package com.HomeWorkhsp.chapter10.homework.homework08;

/**
 * Enjoy programming!!!
 * Time: 2021/12/12 -  21:08
 */
public class Test {
    public static void main(String[] args) {
        Color red = Color.RED;
        red.show();

        switch (red) {
            case RED:
                System.out.println("匹配到红色");
                break;
            case BLACK:
                System.out.println("匹配到黑色");
                break;
            case GREEN:
                System.out.println("匹配到绿色");
                break;
            default:
                System.out.println("匹配不到..");
        }


    }
}
